<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>check case detail</title>
    <style>
    table{border-collapse:collapse;border-spacing:0;border-left:1px solid #888;border-top:1px solid #888;margin: auto}
    th,td{border-right:1px solid #888;border-bottom:1px solid #888;padding:5px 15px;}
    th{font-weight:bold;}
    body{text-align: center}
    </style>
    {% load static %}
    <script type='text/javascript' src="/static/js/jquery.min.js"></script>
    <script type='text/javascript' src="/static/js/user.js"></script>
    <script type="text/javascript">

        $(document).ready(function(){
            $("#goBack").click(function(){
                $("form[name='checkCaseList']").submit();
            });
            $("#modify").click(function(){
                $("form[name='checkCaseList']").attr("action","/modifyCaseDetailPage/");
                $("form[name='checkCaseList']").submit();
            });
        });
    </script>
</head>
<body>
<div style="width: 80%;height:40px;background-color: aqua;margin: 0 auto ">
    <div style="float:left;margin-left: 10px;margin-top: 10px"><a href="#" name="projectManager">项目管理&nbsp;&nbsp;</a>|</div>
    <div style="float:left;margin-left: 10px;margin-top: 10px"><a href="#" name="testCaseManager">测试用例管理&nbsp;&nbsp;</a>|</div>
    <div style="float:left;margin-left: 10px;margin-top: 10px"><a href="#" name="bugCheck">bug情况查看&nbsp;&nbsp;</a>|</div>
    <div style="float:right;margin-right:10px;margin-top: 10px"><a href="#" name="logout">退出</a></div>
    <div style="float:right;margin-right:10px;margin-top: 10px">登录人：{{ request.session.showName }}&nbsp;&nbsp;</div>
    <form method="post" name="dataForm">
        {% csrf_token %}
        <input type="hidden" name="dataInput" />
    </form>
</div><p></p>
    <table >
        <tr>
            <td style="text-align: left;width: 1000px">
                {{ caseInfo.caseTitle }}->{{ caseDetail.caseDetailTitle }} &nbsp;&nbsp; <a href="#" id="goBack">返回</a>&nbsp;&nbsp; <a href="#" id="modify">修改</a>
                <form action="/checkCaseDetailName/" method="post" name="checkCaseList">
                    {% csrf_token %}
                    <input type="hidden" name="caseId" value="{{  caseInfo.id }}"/>
                    <input type="hidden" name="caseDetailId" value="{{  caseDetail.id }}"/>
                </form>

            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                {% autoescape off %}
                {{ caseDetail.caseContent }}
                {% endautoescape %}
            </td>
        </tr>
    </table>
</body>
</html>